//封装返回状态请求提示

const { message } = require("antd")


function useReTip (){
    const handleRemind =(status,tip) =>{
        if(status ==='200')
        message.success(`${tip}成功！`)
    else if(status === '202')
    message.error(`${tip}失败！`)
    }
    return{
        handleRemind
    }
}

export {useReTip}